﻿<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages.Administration, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> 
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Page Language="C#" Inherits="Voodoo.SharePoint.ReadUnreadMarks.ListItemReadUnreadSiteColumnConfigureSettings" MasterPageFile="~/_admin/admin.master"%>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="AdminControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint.ApplicationPages.Administration" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %>

<asp:Content ID="Content1" contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="Read Unread settings" EncodeMethod='HtmlEncode'/>
</asp:content>
<asp:Content ID="Content2" contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" text="Read Unread settings" EncodeMethod='HtmlEncode'/>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>
<asp:Content ID="Content4" contentplaceholderid="PlaceHolderPageDescription" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" text="Configure farm settings for the Voodoo.ListItemReadUnreadSiteColumn" EncodeMethod='HtmlEncodeAllowSimpleTextFormatting'/>
</asp:Content>
<asp:Content ID="Content5" contentplaceholderid="PlaceHolderMain" runat="server">
    <table border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet" width="100%">
        <wssuc:InputFormSection TITLE="Direct updates" runat="server">
            <template_description>
                By default the Read and Unread system uses the SharePoint API to update the read marks
                for a particular item or document. In systems with high user activity this can sometimes
                lead to update collissions which will cause the read marks not to be stored, and occasionally
                cause SharePoint to throw a "Dirty Item" error. If you are experienceing this, then you can 
                enable Direct updates here. <br /><br />
                <div class="ms-error">
                WARNING This mode has been tested in SharePoint Foundation 2010 (as of September 1st 2010) 
                but is not endorsed or explicitly recomended as it bypasses many of the safeguards provided by 
                the SharePoint API.
                </div>
                </template_description>
            <Template_InputFormControls>
                <wssuc:InputFormControl runat="server" LabelText="">
                    <Template_Control>
                       <asp:CheckBox id="chkDirectWrites" Text="" runat="server" />
                       Enable direct updates
                    </Template_Control>
                    </wssuc:InputFormControl>
                </Template_InputFormControls>
        </wssuc:InputFormSection>
        <wssuc:InputFormSection TITLE="Track document reads" runat="server">
            <template_description>
                Normally the Read and Unread tracking system triggers read updates only when a user reads a
                SharePoint form. For document libraries this is the document properties information, if you 
                want a document marked as read when a user opens the document directly or downloads it, then
                you should enable tracking here. If you use Office 2010 extensivly, you should also enable
                Office protocol processing, which processes the WCF/SOAP read requests as well as standard
                document GET requests.
                <br /><br />
                Tracking happens in a background thread, in high load situations you can assign more than 1
                background thread. Set the pool to a value between 1 and 5
                <br /><br />
                <div class="ms-error">
                In this version of SharePoint 2010, Document tracking requires that the Direct update feature
                also be enabled.
                </div>
            </template_description>
            <Template_InputFormControls>
                <wssuc:InputFormControl runat="server" LabelText="">
                    <Template_Control>
                        <asp:CheckBox id="chkDocumentTracking" Text="" runat="server" />
                        Enable document read tracking
                    </Template_Control>
                </wssuc:InputFormControl>
                   <wssuc:InputFormControl ID="InputFormControl1"  runat="server" LabelText="">
                    <Template_Control>
                        <asp:CheckBox id="chkOfficeDocumentTracking" Text="" runat="server" />
                        Enable Office protocol processing
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="">
                    <Template_Control>
                        <asp:DropDownList ID="cboThreadCount" runat="server">
                            <asp:ListItem Value="1">1</asp:ListItem>
                            <asp:ListItem Value="2">2</asp:ListItem>
                            <asp:ListItem Value="3">3</asp:ListItem>
                            <asp:ListItem Value="4">4</asp:ListItem>
                            <asp:ListItem Value="5">5</asp:ListItem>
                        </asp:DropDownList>
                        Background worker thread pool size 
                    </Template_Control>
                </wssuc:InputFormControl>

            </Template_InputFormControls>
        </wssuc:InputFormSection>        
        <wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
            <template_buttons>
                <asp:Button ID="btnApply" runat="server"  Text="Apply" />
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
            </template_buttons>
        </wssuc:ButtonSection>
    </table>
 
     <table width="100%" class="propertysheet" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td class="ms-descriptionText">
                    <asp:Label ID="lblMessage" runat="server" EnableViewState="False" class="ms-descriptionText" />
                </td>
            </tr>
            <tr>
                <td class="ms-error">
                    <asp:Label ID="lblErrorMessage" runat="server" EnableViewState="False" />
                </td>
            </tr>
     </table>    
</asp:Content>
